<div class="title-menu">
    <h2>Bảng thông tin</h2>
</div>
<nav class="bonus">
    <a href="<?php echo base_url("backend/buying/add"); ?>">Thêm thông tin</a> | <a href="<?php echo base_url("backend/buying/deleteall"); ?>" onClick="return confirm('Xác nhận xóa')">Xóa tất cả</a>
</nav>
<article>
    <table cellspacing="0" cellpadding="5" border="1">
        <tr>
            <th>ID</th>
            <th>Nội dung</th>     
            <th>Tùy chọn</th>
        </tr>
        <?php
        if (isset($listpro) && count($listpro))
            foreach ($listpro as $pro) {
                ?>
                <tr>
                    <td><?php echo $pro->id; ?></td>             
                    <td><?php echo $pro->content; ?></td>           
                    <td><a href="<?php echo base_url("backend/buying/update") . '/' . $pro->id; ?>">Sửa</a> | <a href="<?php echo base_url("backend/buying/delete") . '/' . $pro->id; ?>" onClick="return confirm('Xác nhận xóa')">Xóa</a></td>
                </tr>        
                <?php
            }
        ?>
    </table>
</article>